/**
 * Many buttons in a cell
 * http://stackoverflow.com/questions/17565169/unable-to-add-two-buttons-in-a-single-cell-in-a-jtable
 */
package org.tnmk.worktime.gui.tbl;

import java.awt.Component;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;

public class BaseCellRenderer<E extends Component> extends DefaultTableCellRenderer {
  protected Component comp;
  public BaseCellRenderer(){
  }
  
  @Override
  public Component getTableCellRendererComponent(JTable table, Object value,
          boolean isSelected, boolean hasFocus, int row, int column) {
    return this.comp;
  }
}